package org.anderground.editor.edits;

import org.anderground.core.model.Station;

public class SetStationNameAction extends AbstractAction<Station, String> {

	public SetStationNameAction(Station object, String value) {
		super(object, value);
	}

	@Override
	protected String getCurrentValue() {
		return getTarget().getName();
	}

	@Override
	protected void setCurrentValue(String value) {
		Editor.edit(getTarget()).setName(value);

	}
}
